<% for image in @images %>
<a class="slideshow_image_link" id="slideshow_image_link_<%=image.id%>" href="/pictures/<%=image.large_file%>" rel="lightbox[slideshow]" title="<%=h image.name%>">
<%=h image.name%></a>
<% end %>
<script>
window.load;
//initLightbox();
//myLightbox.end();
myLightbox.start(document.getElementsByClassName('slideshow_image_link')[0]);
</script>